<template>
  <div class="leftcontainer">
    <h3>Left</h3>
    <button @click="getInfo">发送GET请求</button><hr/>
    <button @click="getBookInfo">获取图书列表</button>
  </div>
</template>

<script>

export default {
  methods: {
    async getInfo () {
      const { data: res } = await this.axios.get('/api/get')
      console.log(res)
    },
    async getBookInfo () {
      const { data: res } = await this.axios.get('/api/getbooks')
      console.log(res)
    }

  }
}
</script>

<style lang="less" scoped>
.leftcontainer{
  height: 200px;
  flex: 1;
  margin: 10px;
  background-color: aqua;
}
</style>
